﻿using Loki.Utils;

namespace Luna.Connectors.ZohoCRM
{
    public class ZohoCRMSettingsManager : LokiObject
    {
        public void Configure(IZohoCRMSettings P_Data)
        {
            _Client = new ZohoCrmClient(P_Data.APIKey);
        }

        private ZohoCrmClient _Client;

        internal ZohoCrmClient Client
        {
            get
            {
                return _Client;
            }
        }

        public ZohoCrmClient TestQuery(IZohoCRMSettings P_Data)
        {
            return new ZohoCrmClient(P_Data.APIKey);
        }
    }
}